shortcuts: Mananage managed shortcuts with a custom model
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Aug 2018 04:42:22 +0000 (06:42 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Mar 2020 03:00:51 +0000 (23:00 -0400)
commit0c81698911a177ce511e7afe4040d0d2dfafe50c
treefc25b829d55b6f1b7abd743f16ba6e7b22881377
parenta10a29551552c25038078492af0c4a0b93625e8b
shortcuts: Mananage managed shortcuts with a custom model

Reduce the amount of special casing by using a list model
for global and managed shortcuts, too.

This way, the ListModel API will work for the ShortcutController in the
GtkShortcutManager and GtkRoot.

The only special case remaining is shortcut activation, which needs to
pass the right widget to the controller in the global/managed case.
gtk/gtkconcatmodel.c [new file with mode: 0644]
gtk/gtkconcatmodelprivate.h [new file with mode: 0644]
gtk/gtkshortcutcontroller.c
gtk/gtkshortcutcontrollerprivate.h
gtk/gtkshortcutmanager.c
gtk/gtkwidget.c
gtk/meson.build
testsuite/gtk/concatmodel.c [new file with mode: 0644]
testsuite/gtk/meson.build